.scrollbar-style::-webkit-scrollbar {
    width: 8px
}

.scrollbar-style::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent
}

.scrollbar-style::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(150, 150, 150, 0.66);
    border: 4px solid rgba(150, 150, 150, 0.66);
    background-clip: content-box
}

/* 滚轮宽度 */
.mume::-webkit-scrollbar {
    width: 8px
}

.mume::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent
}

.mume::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(150, 150, 150, 0.66);
    border: 4px solid rgba(150, 150, 150, 0.66);
    background-clip: content-box
}

.preview-container {
    width: 100%;
    margin: 0;
    padding: 0;
    /* box-sizing: border-box */
}

.preview-container .btn {
    display: inline-block;
    color: #99aeb8;
    text-shadow: none;
    border: 1px solid #171e22;
    background-color: #32424a;
    background-image: linear-gradient(#364850, #32424a);
    height: auto;
    padding: 0 .8em;
    font-size: 1em;
    line-height: 2em;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    border: none;
    border-radius: 3px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 0;
    user-select: none;
    box-sizing: border-box
}

.preview-container .refreshing-icon {
    display: none;
    position: fixed;
    bottom: 32px;
    left: 48px;
    width: 48px;
    height: 48px;
    background-image: url(octocat-spinner-128.gif);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    font-size: 24px;
    z-index: 999;
    color: black
}

.preview-container .context-menu-item {
    list-style: none;
}

.preview-container #md-toolbar {
    position: fixed;
    top: 32px;
    right: 24px;
    opacity: 0;
    display: block
}

/* 三个小图标 */
.preview-container #md-toolbar .back-to-top-btn,
.preview-container #md-toolbar .refresh-btn,
.preview-container #md-toolbar .sidebar-toc-btn {
    float: right;
    width: 38px;
    margin-right: 4px;
    opacity: .4
}

.preview-container #md-toolbar .back-to-top-btn:hover,
.preview-container #md-toolbar .refresh-btn:hover,
.preview-container #md-toolbar .sidebar-toc-btn:hover {
    opacity: 1
}

.preview-container:hover .back-to-top-btn,
.preview-container:hover .refresh-btn,
.preview-container:hover .sidebar-toc-btn {
    display: block
}

.preview-container.show-sidebar-toc .md-sidebar-toc {
    font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
    position: fixed;
    top: 0;
    right: 0;
    width: 268px;
    height: 100%;
    padding: 32px 0 12px 0;
    overflow: auto;
    font-size: 14px;
    box-shadow: -4px 0 12px rgba(150, 150, 150, 0.33);
    box-sizing: border-box
}

.preview-container.show-sidebar-toc .md-sidebar-toc a {
    text-decoration: none
}

.preview-container.show-sidebar-toc .md-sidebar-toc .md-toc {
    padding: 0 16px
}

.preview-container.show-sidebar-toc .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link {
    display: inline;
    padding: .25rem 0
}

.preview-container.show-sidebar-toc .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link p,
.preview-container.show-sidebar-toc .md-sidebar-toc .md-toc .md-toc-link-wrapper .md-toc-link div {
    display: inline
}

.preview-container.show-sidebar-toc .md-sidebar-toc .md-toc .md-toc-link-wrapper.highlighted .md-toc-link {
    font-weight: 800
}

.preview-container.show-sidebar-toc #md-toolbar {
    right: 300px
}

.preview-container.show-sidebar-toc .mume {
    width: calc(100% - 268px)
}

.preview-container .mume[for="preview"] {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 2em;
    overflow: auto;
    display: block;
    box-sizing: border-box
}

.preview-container .mume[for="preview"][data-presentation-mode] {
    padding: 0
}

.preview-container .mume[for="preview"].hidden-preview {
    visibility: hidden
}

.preview-container .mume[for="preview"] .code-chunk {
    position: relative
}

.preview-container .mume[for="preview"] .code-chunk pre {
    cursor: text
}

.preview-container .mume[for="preview"] .code-chunk .btn-group {
    position: absolute;
    right: 0;
    top: 0;
    display: none
}

.preview-container .mume[for="preview"] .code-chunk .btn-group .run-btn,
.preview-container .mume[for="preview"] .code-chunk .btn-group .run-all-btn {
    float: right;
    margin-left: 4px;
    border-radius: 3px;
    font-size: .8em;
    color: #eee;
    background-color: #528bff;
    background-image: none;
    border: none
}

.preview-container .mume[for="preview"] .code-chunk .btn-group .run-btn:hover,
.preview-container .mume[for="preview"] .code-chunk .btn-group .run-all-btn:hover {
    background-color: #4b7fe8;
    cursor: pointer
}

.preview-container .mume[for="preview"] .code-chunk:hover .btn-group {
    display: block
}

.preview-container .mume[for="preview"] .code-chunk .status {
    position: absolute;
    right: 0;
    top: 0;
    font-size: .85em;
    color: inherit;
    padding: 2px 6px;
    background-color: rgba(0, 0, 0, 0.04);
    display: none
}

.preview-container .mume[for="preview"] .code-chunk.running .btn-group {
    display: none
}

.preview-container .mume[for="preview"] .code-chunk.running .status {
    display: block
}

#image-helper-view {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    padding: 16px;
    box-sizing: border-box
}

#image-helper-view h1,
#image-helper-view h2,
#image-helper-view h3,
#image-helper-view h4,
#image-helper-view h5,
#image-helper-view h6 {
    color: #333
}

#image-helper-view .splitter {
    width: 100%;
    height: 1px;
    margin-bottom: 16px;
    background-color: #f5f5f5
}

#image-helper-view .url-editor {
    display: block;
    margin: 12px 0;
    padding: 8px;
    width: 100%;
    box-sizing: border-box
}

#image-helper-view .drop-area {
    margin-top: 12px;
    text-align: center;
    height: 64px;
    border-style: dashed;
    border-color: #999;
    cursor: pointer;
    margin-bottom: 32px;
    background-color: #fafafa
}

#image-helper-view .drop-area:hover {
    background-color: #f5f5f5
}

#image-helper-view .drop-area p {
    margin: 0;
    position: relative;
    top: 50%;
    transform: translateY(-50%)
}

#image-helper-view .drop-area.uploader {
    margin-bottom: 12px
}

#image-helper-view .uploader-choice {
    margin-bottom: 24px
}

#image-helper-view .uploader-choice select {
    background-color: #f5f5f5;
    border-color: #fff;
    margin: 0 6px
}

#image-helper-view #show-uploaded-image-history {
    font-size: .8em;
    cursor: pointer
}

#image-helper-view .close-btn,
#image-helper-view .add-btn {
    margin-right: 16px;
    width: 64px;
    text-align: center;
    padding: 0
}